package com.admin.system.common;

/**
* @author : alex
* @date : 2020/5/23
*/
public class SystemConstant {
    public static class ResourceStatus {
        /**
         * 菜单可用
         */
        public final static Integer USABLE = 0;
        /**
         * 菜单不可以用
         */
        public final static Integer UNUSABLE = 1;
    }

    /**
     * 角色状态
     */
    public enum RoleStatus {

        USABLE(0, "可用"), UNUSABLE(1, "禁用");
        private Integer code;
        private String discribe;

        private RoleStatus(Integer code, String discribe) {
            this.code = code;
            this.discribe = discribe;
        }

        public Integer getCode() {
            return code;
        }

        public String getDiscribe() {
            return discribe;
        }

    }

    /**
     * 用户状态
     */
    public enum UserStatus {

        USABLE(0, "可用"), UNUSABLE(1, "禁用");
        private Integer code;
        private String discribe;

        private UserStatus(Integer code, String discribe) {
            this.code = code;
            this.discribe = discribe;
        }

        public Integer getCode() {
            return code;
        }

        public String getDiscribe() {
            return discribe;
        }

    }

    /**
     * 组织范围
     */
    public enum GroupScope {

        ALL(1, "全局"), CURRENT(2, "当前");
        private Integer code;
        private String discribe;

        private GroupScope(Integer code, String discribe) {
            this.code = code;
            this.discribe = discribe;
        }

        public Integer getCode() {
            return code;
        }

        public String getDiscribe() {
            return discribe;
        }

    }
}
